/* CompactTools.module.css */
.container {
    width: 100%;
    /* max-width: 1550px; */
    margin: 0 auto;
    padding: 20px 0;
}

.title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.toolRow {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #F9FAFB;
    padding: 10px;
    border-radius: 10px;
}

.toolItem {
    position: relative;
    flex: 1;
    max-width: 248px;
    height: 90px;
    /* 降低高度 */
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.toolItem.hover {
    transform: translateY(-3px);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.tag.recommend {
    background-color: #ff4d4f;
    color: white;
}

.tag.hot {
    background-color: #ff7a45;
    color: white;
}

.contentWrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.toolIcon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    flex-shrink: 0;
}

.textContent {
    flex: 1;
    min-width: 0;
}

.toolTitle {
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.toolDesc {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 悬停状态 */
.toolItem:hover .toolTitle,
.toolItem:hover .toolDesc {
    color: white !important;
}